﻿CREATE PROCEDURE [dbo].[Purchase_AuthecationToken_Put]
	@purchaseId bigint,

	@authecationTokenAccessToken nvarchar(MAX) = NULL,
	@authecationTokenError nvarchar(32) = NULL,
	@authecationTokenErrorInfo nvarchar(MAX) = NULL
AS
BEGIN
	UPDATE [dbo].[purchase_Item]
	SET [AuthecationTokenDate] = GETUTCDATE()
			,[AuthecationTokenAccessToken] = @authecationTokenAccessToken
			,[AuthecationTokenError] = @authecationTokenError
			,[AuthecationTokenErrorInfo] = @authecationTokenErrorInfo
	WHERE [PurchaseId] = @purchaseId
END